
// import { jobSpread } from "../job/spread";
// import { roleHarvester } from "../role/dinamic/harvester";
// import { roleBuilder } from "../role/dinamic/builder";
// import { roleUpgrader } from "../role/dinamic/upgrader";
// import { roleRepairer } from "../role/dinamic/repairer";
// import { Chain } from "../class/chain";

export const defaultRoomName=Game.spawns['Spawn1'].room.name;


export const UPGRADER_NORMAL_ENERGY_PERCENTAGE = 0.3;
export const UPGRADER_DEMENDING_ENERGY_PERCENTAGE = 0.05;
export const UPGRADER_SUPPLYING_ENERGY_PERCENTAGE = 0.9 ;


// export const classChain={
//     table:{
//         // harvester:      [roleHarvester, roleUpgrader, jobSpread],
//         // upgrader:       [roleUpgrader, jobSpread],
//         builder:        [roleBuilder, roleHarvester, roleRepairer, roleUpgrader, jobSpread],
//         repairer:       [roleRepairer, roleBuilder, roleHarvester, roleUpgrader, jobSpread],
//         // attacker:       [roleAttacker, jobSpread],
//         // ranged_attacker:[roleRangedAttacker, jobSpread],
//         // healer:         [roleHealer, jobSpread],
//         // tmp:            [jobSpread],
//         // suicide:        [roleSuicide],
//     },
//     run:(creep)=>{
//         return new Chain(classChain.table[creep.memory.role]).run(creep);
//     }
// };
